GtkProgressBar: Set orientable style classes initially
authorMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jul 2014 23:39:11 +0000 (19:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jul 2014 23:39:11 +0000 (19:39 -0400)
This was an omission, horizontal/vertical would only be set
when the orientation is changed.

gtk/gtkprogressbar.c

index 9291982d3429679e7f379dce97d005b36b27541e..65399214a639b13f5516d12a2d2283190c3c4e3a 100644 (file)
@@ -322,6 +322,7 @@ gtk_progress_bar_init (GtkProgressBar *pbar)
   priv->fraction = 0.0;
 
   gtk_widget_set_has_window (GTK_WIDGET (pbar), FALSE);
+  _gtk_orientable_set_style_classes (GTK_ORIENTABLE (pbar));
 }
 
 static void